/* HomePage CSS Module */

.home {
  height: 100%;
  background-color: #f5f5f5;
}


.searchIcon {
  color: #999;
}

.categoryContainer {
  padding: 10px;
}

.categoryItem {
  margin-bottom: 10px;
  background-color: #ffffff;
  border-radius: 8px;
}

.categoryTitle {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  border-bottom: 1px solid #e5e5e5;
  padding: 15px;
  justify-content: space-between;
}

.categoryTitleContent {
  display: flex;
  align-items: center;
}

.categoryIcon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 8px;
}

.categoryContent {
  padding: 10px;
  background-color: #ffffff;
  border-radius: 6px;
}

.catalogItem {
  /* 基础样式 */
  transition: all 0.3s ease;
}

.catalogItemHeader {
  display: flex;
  align-items: center;
  margin: 10px 0;
  position: relative;
}

.catalogItemHeader.expanded {
  /* 扩展状态的样式 */
}

.catalogItemHeader.expanded::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  width: 15px;
  height: 1px;
  background-color: #e0e0e0;
  z-index: 1;
}

.catalogItemName {
  display: flex;
  align-items: center;
  font-size: 14px;
  justify-content: space-between;
  width: 100%;
}

.catalogItemNameIcon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 8px;
}

.icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  margin-right: 8px;
  background-color: #f9f9f9;
}

.noChildren {
  .catalogItemHeader {
    line-height: 30px !important;
    .catalogItemName {
      display: flex;
      width: 100%;
      background-color: #f5f5f5;
      padding: 4px 0 4px 8px;
      border-radius: 4px;
      color: #999999;
    }
  }
}

.depth {
  padding-left: 20px;
}

.catalogChildren {
  padding-left: 10px;
  position: relative;
  
  /* 添加连接线 */
  &::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e0e0e0;
    z-index: 0;
  }
}

.highlight {
  color: red;
  font-weight: bold;
}